#!/bin/bash

: ${1?"Not enough arguments: `basename $0` task-url"}

wget -q -O- "$1" | grep -Po '(?<=<a href=")https?://kojipkgs.fedoraproject.org//work/tasks/[^\"]*\.rpm(?=")' \
	| while read url; do
		echo "Downloading from $url";
		curl -O "$url";
	done

#	| xargs -rI{} sh -c ''